<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>代理商充电保</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/base/data/css/style.css">
    <link rel="stylesheet" href="/assets/base/data/css/layer.css">
</head>
<body>
    <div class="wraper" id="register">
        <div class="title text-center white">登录</div>
        <div class="main-register">
            <div class="information-box flex-between">
                <div class="iconfont icon-msnui-user blue">
                </div>
                <input type="text" class="flex-1 phone-input" placeholder="请输入手机号码">
                <a href="#" class="send font-12 text-center white">获取验证码</a>
            </div>
            <div class="information-box flex-between margin-t22">
                <div class="iconfont icon-suo blue">
                </div>
                <input type="text" class="flex-1 phone-input" placeholder="请输入验证码">
            </div>
            <a href="#" class="text-center btn font-16 white">登录</a>
        </div>
    </div>
</body>
<script src="/assets/base/data/js/jquery-2.1.0.min.js"></script>
<script src="/assets/base/data/js/layer.js"></script>
<script src="/assets/base/data/js/public.js"></script>
<script>
    var height=$(window).height();
    $('#register').css('minHeight',height);

    //点击获取验证码
    var verifyTag = true;
    $('.information-box').on('click', '.send', function (e) {
        e.preventDefault();
        if (verifyTag) timeCountDown(this);
        else return;
    });
    // 验证倒计时
    function timeCountDown(elem, seconds) {
        verifyTag = false;
        if (typeof seconds == undefined || seconds == null) seconds = 60;
        setTimeout(function () {
            if (seconds > 0) {
                seconds--;
                $(elem).text('已发送 ' + seconds + 's').addClass('time');
                timeCountDown(elem, seconds);
            } else {
                $(elem).removeClass('time').text('获取验证码');
                verifyTag = true;
            }
        }, 1000);
    }


    $('.btn').click(function () {
        fm.alert('输入错误')
    })
</script>
</html>